/* 打包时间：2025-11-29 21:10:27 */
(function(){
  try{
    var bridge = null;
    try{ bridge = runtime && runtime.accessibilityBridge; }catch(e){}
    if(!bridge){
      try{
        var m = runtime.getClass().getDeclaredMethod("getAccessibilityBridge");
        m.setAccessible(true);
        bridge = m.invoke(runtime);
      }catch(e){}
    }
    if(!bridge){ return; }
    try{
      var WF = Packages.com.stardust.autojs.core.accessibility.AccessibilityBridge$WindowFilter;
      bridge.setWindowFilter(new JavaAdapter(WF,{ filter:function(info){ return true; } }));
    }catch(e){}
  }catch(e){}
})();
module['exports'] = function (_0x271333) {
    var _0x5c99e8 = {};
    function _0x2e7e99(_0x3ed5c1) {
        if (_0x5c99e8[_0x3ed5c1])
            return _0x5c99e8[_0x3ed5c1]['exports'];
        var _0x267c5d = _0x5c99e8[_0x3ed5c1] = {
            'i': _0x3ed5c1,
            'l': ![],
            'exports': {}
        };
        return _0x271333[_0x3ed5c1]['call'](_0x267c5d['exports'], _0x267c5d, _0x267c5d['exports'], _0x2e7e99), _0x267c5d['l'] = !![], _0x267c5d['exports'];
    }
    return _0x2e7e99['m'] = _0x271333, _0x2e7e99['c'] = _0x5c99e8, _0x2e7e99['d'] = function (_0x1a5a11, _0x3c1e3d, _0x860833) {
        !_0x2e7e99['o'](_0x1a5a11, _0x3c1e3d) && Object['defineProperty'](_0x1a5a11, _0x3c1e3d, {
            'enumerable': !![],
            'get': _0x860833
        });
    }, _0x2e7e99['r'] = function (_0x2ad709) {
        typeof Symbol !== 'undefined' && Symbol['toStringTag'] && Object['defineProperty'](_0x2ad709, Symbol['toStringTag'], { 'value': 'Module' }), Object['defineProperty'](_0x2ad709, '__esModule', { 'value': !![] });
    }, _0x2e7e99['t'] = function (_0x5db457, _0x4b047a) {
        if (_0x4b047a & 0x1)
            _0x5db457 = _0x2e7e99(_0x5db457);
        if (_0x4b047a & 0x8)
            return _0x5db457;
        if (_0x4b047a & 0x4 && typeof _0x5db457 === 'object' && _0x5db457 && _0x5db457['__esModule'])
            return _0x5db457;
        var _0x1afd27 = Object['create'](null);
        _0x2e7e99['r'](_0x1afd27), Object['defineProperty'](_0x1afd27, 'default', {
            'enumerable': !![],
            'value': _0x5db457
        });
        if (_0x4b047a & 0x2 && typeof _0x5db457 != 'string') {
            for (var _0x2a807f in _0x5db457)
                _0x2e7e99['d'](_0x1afd27, _0x2a807f, function (_0x5c5daa) {
                    return _0x5db457[_0x5c5daa];
                }['bind'](null, _0x2a807f));
        }
        return _0x1afd27;
    }, _0x2e7e99['n'] = function (_0x135df3) {
        var _0x472776 = _0x135df3 && _0x135df3['__esModule'] ? function _0x5cf553() {
            return _0x135df3['default'];
        } : function _0x4a2888() {
            return _0x135df3;
        };
        return _0x2e7e99['d'](_0x472776, 'a', _0x472776), _0x472776;
    }, _0x2e7e99['o'] = function (_0x18d8d7, _0x2975c3) {
        return Object['prototype']['hasOwnProperty']['call'](_0x18d8d7, _0x2975c3);
    }, _0x2e7e99['p'] = '', _0x2e7e99(_0x2e7e99['s'] = 0x7);
}({
    0x1: function (_0x4333ad, _0x46118b) {
        _0x4333ad['exports'] = require('./datastore.js');
    },
    0xb: function (_0x95ca89, _0x237aee) {
        _0x95ca89['exports'] = require('./adb.js');
    },
    0x7: function (_0x3f3651, _0x190cca, _0x1d27b0) {
        var _0x27e3dc = {};
        _0x3f3651['exports'] = _0x27e3dc;
        const _0x38a835 = _0x1d27b0(0x1);
        _0x27e3dc['mimi'] = function (_0x37d657, _0x5c876d, _0x205e3a) {
            let _0x5e1fcc = [];
            if (arguments[0x0] == '' || arguments[0x0] == undefined)
                return null;
            else {
                let _0x1f7e6d = String(arguments[0x0]);
                for (let _0x2f7568 = 0x0; _0x2f7568 < _0x1f7e6d['length']; _0x2f7568++) {
                    _0x5e1fcc[_0x2f7568] = _0x1f7e6d['charCodeAt'](_0x2f7568);
                }
            }
            let _0x2c29b8;
            if (arguments[0x1] == '' || arguments[0x1] == undefined)
                _0x2c29b8 = [
                    0x7adf,
                    0x7136,
                    0x4e0d,
                    0x8f93,
                    0x5165,
                    0x5bc6,
                    0x7801,
                    0xff0c,
                    0x770b,
                    0x6211,
                    0x6253,
                    0x4e0d,
                    0x6b7b,
                    0x4f60,
                    0x4e2b,
                    0x7684
                ];
            else {
                let _0x43dd5d = String(arguments[0x1]);
                _0x2c29b8 = [];
                for (let _0x360d0c = 0x0; _0x360d0c < _0x43dd5d['length']; _0x360d0c++) {
                    _0x2c29b8[_0x360d0c] = _0x43dd5d['charCodeAt'](_0x360d0c);
                }
            }
            let _0x5852aa;
            arguments[0x2] != 0x1 ? _0x5852aa = 's[i]\x20=\x20s[i]\x20+\x20n[j];if\x20(s[i]\x20>\x2065535)\x20{s[i]\x20=\x20s[i]\x20-\x2065535;};' : _0x5852aa = 's[i]\x20=\x20s[i]\x20-\x20n[j];if\x20(s[i]\x20<\x200)\x20{s[i]\x20=\x20s[i]\x20+\x2065535;};';
            let _0x254be8 = 0x0;
            for (let _0xa102fb = 0x0; _0xa102fb < _0x5e1fcc['length']; _0xa102fb++) {
                eval(_0x5852aa), _0x254be8++, _0x254be8 >= _0x2c29b8['length'] && (_0x254be8 = 0x0);
            }
            let _0x283275 = _0x5e1fcc['join'](',');
            return String['fromCharCode'](_0x283275);
        }, _0x27e3dc['delRepeat'] = function (_0x10044b) {
            _0x10044b['sort']();
            let _0x499fbc = [_0x10044b[0x0]];
            for (let _0x3bd5f0 = 0x1; _0x3bd5f0 < _0x10044b['length']; _0x3bd5f0++) {
                _0x10044b[_0x3bd5f0] !== _0x499fbc[_0x499fbc['length'] - 0x1] && _0x499fbc['push'](_0x10044b[_0x3bd5f0]);
            }
            return _0x499fbc;
        }, _0x27e3dc['formatDate'] = function (_0x436ac9) {
            let _0x1471f3 = new Date(), _0x1bf094 = _0x1471f3['getFullYear'](), _0x31808b = _0x1471f3['getMonth']() + 0x1, _0x189fdc = _0x1471f3['getDate'](), _0x179491 = _0x1471f3['getHours'](), _0x3c8143 = _0x1471f3['getMinutes'](), _0x18899b = _0x1471f3['getSeconds']();
            _0x31808b = _0x31808b < 0xa ? '0' + _0x31808b : _0x31808b, _0x189fdc = _0x189fdc < 0xa ? '0' + _0x189fdc : _0x189fdc, _0x179491 = _0x179491 < 0xa ? '0' + _0x179491 : _0x179491, _0x3c8143 = _0x3c8143 < 0xa ? '0' + _0x3c8143 : _0x3c8143, _0x18899b = _0x18899b < 0xa ? '0' + _0x18899b : _0x18899b;
            let _0x48c401, _0x5053fd;
            _0x1471f3 = _0x1bf094 + '-' + _0x31808b + '-' + _0x189fdc, _0x48c401 = _0x179491 + ':' + _0x3c8143 + ':' + _0x18899b;
            if (_0x436ac9 === 'date')
                _0x5053fd = _0x1471f3;
            else
                _0x436ac9 === 'time' ? _0x5053fd = _0x48c401 : _0x5053fd = _0x1471f3 + '\x20' + _0x48c401;
            return _0x5053fd;
        }, _0x27e3dc['uniqueArr'] = function (_0xfce97b) {
            let _0x38f2b3 = [], _0x2f304f = {};
            for (let _0x39134b = 0x0; _0x39134b < _0xfce97b['length']; _0x39134b++) {
                !_0x2f304f[_0xfce97b[_0x39134b]] && (_0x38f2b3['push'](_0xfce97b[_0x39134b]), _0x2f304f[_0xfce97b[_0x39134b]] = 0x1);
            }
            return _0x38f2b3;
        }, _0x27e3dc['uniqueArrAdelB'] = function (_0x109f63, _0x183156) {
            let _0x2e8e9c = {};
            for (let _0x35c51a = 0x0; _0x35c51a < _0x183156['length']; _0x35c51a++) {
                !_0x2e8e9c[_0x183156[_0x35c51a]] && (_0x2e8e9c[_0x183156[_0x35c51a]] = 0x1);
            }
            let _0x4a96e0 = [];
            for (let _0x3154a6 = 0x0; _0x3154a6 < _0x109f63['length']; _0x3154a6++) {
                !_0x2e8e9c[_0x109f63[_0x3154a6]] && _0x4a96e0['push'](_0x109f63[_0x3154a6]);
            }
            return _0x4a96e0;
        }, _0x27e3dc['circularWait'] = function (_0x3b28f0, _0x19f46e) {
            _0x3b28f0 = _0x3b28f0 == null ? 0xa : parseInt(_0x3b28f0), _0x19f46e = _0x19f46e == null ? 0x2 : parseInt(_0x19f46e);
            if (_0x3b28f0 < 0x0)
                return ![];
            else {
                if (_0x3b28f0 === 0x0)
                    return !![];
            }
            let _0x39b218 = parseInt(new Date()['getTime']() / 0x3e8), _0x41b500 = _0x39b218 + _0x3b28f0, _0x1c03df, _0x258ffc = 0x0;
            do {
                _0x1c03df = parseInt(new Date()['getTime']() / 0x3e8), sleep(_0x19f46e * 0x3e8), _0x258ffc += _0x19f46e;
                if (_0x258ffc > 0xa) {
                    console['log']('[lib|L122]', 'clock\x20~di~ta~di~ta~'), _0x258ffc -= 0xa;
                    try {
                        device['keepScreenDim'](0x12c);
                    } catch (_0x186aeb) {
                        console['log']('[lib|L127]', 'error:', _0x186aeb);
                    }
                }
            } while (_0x1c03df < _0x41b500);
            return console['log']('[lib|L161]', '此轮循环共等待' + _0x3b28f0 + '秒'), !![];
        }, _0x27e3dc['randomWait'] = function (_0x40aeba, _0x370f15) {
            if (_0x40aeba === undefined)
                _0x40aeba = 0x32;
            !_0x370f15 && (_0x370f15 = parseInt(_0x40aeba * 1.5)), sleep(random(_0x40aeba, _0x370f15));
        }, _0x27e3dc['auto_new'] = function () {
            let _0x56be62 = ![];
            if (auto['service'] == null) {
                toast('请先开启无障碍服务！');
                let _0x55c81f = _0x1d27b0(0xb), _0x10c487 = _0x38a835['get']('PackageName');
                toastLog('PackageName:' + _0x10c487);
                if (_0x55c81f['getPermission'](_0x10c487))
                    _0x56be62 = !![];
                else
                    try {
                        runtime['accessibilityBridge']['ensureServiceEnabled'](), _0x56be62 = !![];
                    } catch (_0x3133f4) {
                        console['error']('[lib|L194]', _0x3133f4), app['startActivity']({ 'action': 'android.settings.ACCESSIBILITY_SETTINGS' }), _0x56be62 = ![];
                    }
            } else
                _0x56be62 = !![];
            return _0x56be62;
        }, _0x27e3dc['getUiObj'] = function (_0x5a802f, _0x1eee16, _0x478f4c) {
            if (_0x1eee16 === undefined)
                _0x1eee16 = 'findOne';
            if (_0x478f4c === undefined)
                _0x478f4c = 0x3;
            let _0x1728d3 = null;
            if (!_0x5a802f || typeof _0x5a802f !== 'object')
                return console['log']('[lib|L215]', 'query参数类型错误:', _0x5a802f), _0x1728d3;
            var _0x1c5fee = Array['isArray'](_0x5a802f) ? function () {
                return _0x27e3dc['getUiObjByList'](_0x5a802f, _0x1eee16);
            } : function () {
                var _0x4265d1 = _0x27e3dc['getUiObjSingle'](_0x5a802f, _0x1eee16);
                return _0x4265d1 && _0x4265d1['UiO'] || null;
            };
            while (_0x478f4c > 0x0) {
                _0x1728d3 = _0x1c5fee();
                if (_0x1eee16 === 'findOne' && _0x1728d3 || _0x1eee16 === 'find' && _0x1728d3 && _0x1728d3['length'])
                    break;
                _0x27e3dc['randomWait'](0x32), _0x478f4c -= 0x1;
            }
            return _0x1728d3;
        }, _0x27e3dc['getUiObjByList'] = function (_0x377f73, _0x5d5388) {
            if (_0x5d5388 === undefined)
                _0x5d5388 = 'findOne';
            let _0x4299e6 = [];
            if (Array['isArray'](_0x377f73))
                return console['error']('[lib|L241]', 'query参数类型错误:', _0x377f73), _0x4299e6;
            for (let _0x1c30b7 = 0x0; _0x1c30b7 < _0x377f73['length']; _0x1c30b7++) {
                let _0x55f6f4 = _0x377f73[_0x1c30b7], _0x20ace9 = _0x27e3dc['getUiObjSingle'](_0x55f6f4, _0x5d5388);
                if (_0x20ace9['flag']) {
                    _0x4299e6 = _0x20ace9['UiO'];
                    break;
                }
            }
            return _0x4299e6;
        }, _0x27e3dc['getUiObjSingle'] = function (_0x4de1ea, _0x5a6cb9) {
            if (_0x5a6cb9 === undefined)
                _0x5a6cb9 = 'findOne';
            if (_0x5a6cb9 === 'find')
                return _0x27e3dc['getUiObjsSingle'](_0x4de1ea, _0x5a6cb9);
            let _0x140969 = {
                'flag': ![],
                'UiO': null
            };
            try {
                let _0x49a7cf = _0x4de1ea['findOne'](0x96);
                return _0x49a7cf && (_0x140969['flag'] = !![], _0x140969['UiO'] = _0x49a7cf), _0x140969;
            } catch (_0x42f94c) {
                return console['log']('[lib|L273]', 'getUiObjSingle:' + JSON['stringify'](_0x42f94c)), _0x140969;
            }
        }, _0x27e3dc['getUiObjsSingle'] = function (_0x2553ae, _0x4afe85) {
            if (_0x4afe85 === undefined)
                _0x4afe85 = 'find';
            if (_0x4afe85 === 'findOne')
                return _0x27e3dc['getUiObjSingle'](_0x2553ae, _0x4afe85);
            let _0x1bc863 = {
                'flag': ![],
                'UiO': []
            };
            try {
                let _0x363db2 = _0x2553ae['find']();
                return _0x363db2 && _0x363db2['length'] > 0x0 && (_0x1bc863['flag'] = !![], _0x1bc863['UiO'] = _0x363db2), _0x1bc863;
            } catch (_0x3ec5ee) {
                return console['log']('[lib|L296]', 'getUiObjsSingle:' + JSON['stringify'](_0x3ec5ee)), _0x1bc863;
            }
        }, _0x27e3dc['confirmAsync'] = function (_0x244060) {
            if (_0x244060 === undefined)
                _0x244060 = '请确认';
            return new Promise(function (_0x93ff0e, _0x33271d) {
                confirm('确认提示', _0x244060, function (_0x50c55a) {
                    _0x50c55a ? _0x93ff0e() : _0x33271d();
                });
            });
        }, _0x27e3dc['InterruptConfirm'] = function (_0x42108e) {
            if (_0x42108e === undefined)
                _0x42108e = ![];
            return new Promise(function (_0x8964f8, _0x22c94d) {
                if (!_0x42108e && _0x27e3dc['InterruptBefore']())
                    return _0x8964f8();
                var _0xaa91cd = _0x38a835['get']('InterruptTimeStamp2', 0x0) * 0x1;
                confirm('执行提示', '频繁时间还没到[' + new Date(_0xaa91cd)['toTimeString']() + '],\x20是否确认执行?', function (_0x31aac9) {
                    return _0x31aac9 ? (_0x38a835['remove']('InterruptTimeStamp2'), _0x8964f8()) : _0x22c94d();
                });
            });
        }, _0x27e3dc['InterruptTest'] = function () {
            return _0x27e3dc['InterruptAfter'](), _0x27e3dc['InterruptConfirm']();
        }, _0x27e3dc['InterruptAfter'] = function (_0x308d87) {
            if (_0x308d87 < 0x0)
                return ![];
            console['warn']('[lib|L338]', '检测到可能已触发频繁,故中断此轮运行,以保护账号~');
            const _0x5ab7d6 = 4.1, _0x3e1469 = new Date();
            return _0x3e1469['setHours'](_0x3e1469['getHours']() + _0x5ab7d6), console['warn']('[lib|L342]', '建议在' + _0x3e1469['toLocaleTimeString']() + '后,\x20再启动执行'), _0x38a835['put']('InterruptTimeStamp2', _0x3e1469['getTime']()), !![];
        }, _0x27e3dc['InterruptBefore'] = function () {
            const _0xb293c4 = _0x38a835['get']('InterruptTimeStamp2', 0x0) * 0x1, _0xee7608 = new Date()['getTime']();
            if (_0xb293c4 > _0xee7608)
                return console['warn']('[lib|L351]', '[\x20频繁时间还没到\x20]\x20>', new Date(_0xb293c4)['toTimeString'](), '请时间到后再启动软件!'), ![];
            return _0x38a835['remove']('InterruptTimeStamp2'), !![];
        }, _0x27e3dc['getSingle'] = function (_0x448c21) {
            var _0x37dde4;
            return function () {
                return _0x37dde4 || (_0x37dde4 = _0x448c21['apply'](this, arguments));
            };
        }, _0x27e3dc['getInteratorObj'] = function () {
            for (let _0x169ff7 = 0x0; _0x169ff7 <= arguments['length']; _0x169ff7++) {
                let _0x4affc6 = arguments[_0x169ff7]();
                if (_0x4affc6 !== ![])
                    return _0x4affc6;
            }
        }, _0x27e3dc['getSavePathList'] = function () {
            let _0x2b908a = [
                    '/storage/emulated/0',
                    '/sdcard'
                ], _0x24d80d = files['getSdcardPath']();
            _0x2b908a['indexOf'](_0x24d80d) === -0x1 && _0x2b908a['push'](_0x24d80d);
            let _0x3e9331 = [
                    '/tencent/MicroMsg/Download/',
                    '/Download/WeiXin/',
                    '/Android/data/com.tencent.mm/MicroMsg/Download/',
                    '/Download/'
                ], _0x42b47b = [];
            var _0x341056 = function (_0x2330e8) {
                    return files['listDir'](_0x2330e8, function (_0x65792e) {
                        return _0x65792e['endsWith']('.csv') && files['isFile'](files['join'](_0x2330e8, _0x65792e));
                    });
                }, _0x3fccd5 = function (_0xeaf933) {
                    return files['listDir'](_0xeaf933, function (_0x3fa390) {
                        return files['isFile'](files['join'](_0xeaf933, _0x3fa390));
                    });
                };
            for (let _0x397142 = 0x0; _0x397142 < _0x2b908a['length']; _0x397142++) {
                let _0x121921 = _0x2b908a[_0x397142];
                for (let _0x141d0d = 0x0; _0x141d0d < _0x3e9331['length']; _0x141d0d++) {
                    let _0x403dca = _0x3e9331[_0x141d0d], _0x23c7ca = files['join'](_0x121921, _0x403dca);
                    if (files['isDir'](_0x23c7ca)) {
                        const _0x103f9e = _0x341056(_0x23c7ca)['length'], _0x4c320e = _0x3fccd5(_0x23c7ca)['length'];
                        _0x4c320e && _0x42b47b['push']({
                            'path': _0x23c7ca + '/',
                            'csvNum': _0x103f9e
                        });
                    }
                }
            }
            _0x42b47b['sort'](function (_0x2d845f, _0x3138af) {
                return _0x3138af['csvNum'] - _0x2d845f['csvNum'];
            });
            const _0x49b9fb = _0x42b47b['map'](function (_0x2db83a) {
                return _0x2db83a['path'];
            });
            return _0x49b9fb;
        };
    }
});